summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders/vulkan_fidelityfx_fsr.vert
blob: 6a87a7cac0f66cefb191cf8f942994c449d1ef84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#version 450

layout(location = 0) out vec2 texcoord;

void main() {
    float x = float((gl_VertexIndex & 1) << 2);
    float y = float((gl_VertexIndex & 2) << 1);
    gl_Position = vec4(x - 1.0, y - 1.0, 0.0, 1.0);
    texcoord = vec2(x, y) / 2.0;
}